<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo ($webname); ?></title>
<link href="__PUBLIC__/Admin/images/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/js/common.js"></script>
</head>
<body>
<div class="main" >
  <div class="body">
    <div class="breadcrumb"> <span class="dh">
      <?php if(is_array($data[breadcrumbs])): $i = 0; $__LIST__ = $data[breadcrumbs];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="<?php echo ($vo["href"]); ?>"><?php echo ($vo["text"]); ?></a><?php echo ($vo["separator"]); endforeach; endif; else: echo "" ;endif; ?>
      </span> <span class="button"><a href="#" onClick="$('#form').submit();">确认</a><a href="#" onClick="location='/admin.php'">取消</a></span> </div>
    <form action="<?php echo ($data[action]); ?>" method="post" id="form">
      <ul class="form_list">
        <li><span class="ti"><?php echo ($config[mail_protocol][title]); ?>：</span>
          <select name="fields['mail_protocol']">
            <option value="mail" <?php if($config[mail_protocol][content] == 'mail'): ?>selected="selected"<?php else: endif; ?>>MAIL</option>
            <option value="smtp" <?php if($config[mail_protocol][content] == 'smtp'): ?>selected="selected"<?php else: endif; ?>>SMTP</option>
          </select>
          <span class="ds"><?php echo ($config[mail_protocol][discript]); ?></span></li>
        <li><span class="ti"><?php echo ($config[mail_parameter][title]); ?>：</span>
          <input type="text" name="fields['mail_parameter']" value="<?php echo ($config[mail_parameter][content]); ?>" class="input" size="50" />
          <span class="ds"><?php echo ($config[mail_parameter][discript]); ?></span></li>
        <li><span class="ti"><?php echo ($config[smtp_host][title]); ?>：</span>
          <input type="text" name="fields['smtp_host']" value="<?php echo ($config[smtp_host][content]); ?>" class="input" size="50" />
          <span class="ds"><?php echo ($config[smtp_host][title]); ?></span></li>
        <li><span class="ti"><?php echo ($config[smtp_username][title]); ?>：</span>
          <input type="text" name="fields['smtp_username']" value="<?php echo ($config[smtp_username][content]); ?>" class="input" size="50" />
          <span class="ds"><?php echo ($config[smtp_username][discript]); ?></span></li>
        <li><span class="ti"><?php echo ($config[smtp_password][title]); ?>：</span>
          <input type="text" name="fields['smtp_password']" value="<?php echo ($config[smtp_password][content]); ?>" class="input" size="50" />
          <span class="ds"><?php echo ($config[smtp_password][discript]); ?></span></li>
        <li><span class="ti"><?php echo ($config[smtp_port][title]); ?>：</span>
          <input type="text" name="fields['smtp_port']" value="<?php echo ($config[smtp_port][content]); ?>" class="input" size="10" />
          <span class="ds"><?php echo ($config[smtp_port][discript]); ?></span></li>
        <li><span class="ti"><?php echo ($config[smtp_timeout][title]); ?>：</span>
          <input type="text" name="fields['smtp_timeout']" value="<?php echo ($config[smtp_timeout][content]); ?>" class="input" size="10" />
          <span class="ds"><?php echo ($config[smtp_timeout][discript]); ?></span></li>
        <li><span class="ti"><?php echo ($config[alert_mail][title]); ?>：</span>
          <input type="radio" name="fields['alert_mail']" value="true" class="input" <?php if($config[alert_mail][content] == 'true'): ?>checked="checked"<?php else: endif; ?> />
          <label>是</label>
          <input type="radio" name="fields['alert_mail']" value="false" class="input" <?php if($config[alert_mail][content] == 'false'): ?>checked="checked"<?php else: endif; ?> />
          <label>否</label>
          <span class="ds"><?php echo ($config[alert_mail][discript]); ?></span></li>
        <li><span class="ti"><?php echo ($config[account_mail][title]); ?>：</span>
          <input type="radio" name="fields['account_mail']" value="true" class="input" <?php if($config[account_mail][content] == 'true'): ?>checked="checked"<?php else: endif; ?> />
          <label>是</label>
          <input type="radio" name="fields['account_mail']" value="false" class="input" <?php if($config[account_mail][content] == 'false'): ?>checked="checked"<?php else: endif; ?> />
          <label>否</label>
          <span class="ds"><?php echo ($config[account_mail][discript]); ?></span></li>
        <li><span class="ti"><?php echo ($config[alert_emails][title]); ?>：</span>
          <textarea name="fields['alert_emails']" cols="80" rows="5" class="text"><?php echo ($config[alert_emails][content]); ?></textarea>
          <span class="ds"><?php echo ($config[alert_emails][discript]); ?></span></li>
      </ul>
    </form>
  </div>
</div>
<div class="footer"><?php echo ($copyright); ?></div>
</body>
</html>